package base;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author liweimin
 * @date 2021/1/18 19:47
 * @description
 * @since
 */
public class HelloWorld {
    public static void main(String[] args) throws IOException {
        System.out.println("开始测试");
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        while ((str = br.readLine()) != null) {
            if ("e".equalsIgnoreCase(str)) {
                System.out.println("安全退出!");
                break;
            }
            System.out.println("-->" + str.toUpperCase());
            System.out.println("继续输入信息");
        }
        br.close();
    }
}
